from airtest.core.api import *
def checkagree(poco):
    if poco(text="确认授权").exists():
        poco(text="确认授权").click()
        sleep(3)